<#macro standardDialog buttons bottomButtons content script searchItems checkSession=true>
<#if checkSession>
	<@sessionExpireTransfer />
</#if>
<div class="easyui-layout" id="dialog_${model.clientId}">
	<#if buttons??>
		<div data-options="region:'north',border:false" style="max-height:400px;overflow:hidden;">
			<div class="datagrid-toolbar clearfix">
				${buttons}
			</div>
			
			<#if searchItems?? && searchItems != "">
				<@std.searchpanel id="searchPanel_${model.clientId}" showMore=showSearchMore>${searchItems}</@std.searchpanel>
			</#if>
	    </div>
    </#if>
    <#if bottomButtons??>
		<div data-options="region:'south',border:false" style="max-height:400px;overflow:hidden;">
			<div class="datagrid-toolbar toolbar-bottom clearfix">
				<div class="pull-right">
					${bottomButtons}
				</div>
			</div>
		</div>
	</#if>
	<div data-options="region:'center',border:false">
		${content}
	</div>
</div>

<#if script??>
<script>
${script}
</script>
</#if>

</#macro>